package com.jdrx.sw.sewage.beans.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * sewage_alarm_set
 */
@Data
@ApiModel(value = "AlarmRespUserPO", description = "告警负责人设置")
public class AlarmRespUserPO implements Serializable {
    private static final long serialVersionUID = -1206960462117924923L;

    @NotNull
    @Range(min = 1)
    @ApiModelProperty(value = "主键ID", required = true)
    private Long id;

    @ApiModelProperty(value = "责任人id（多人英文逗号分割）", required = true)
    private String userId;

    @ApiModelProperty(value = "责任人名称（多人英文逗号分割）", required = true)
    private String userName;

    @ApiModelProperty(value = "修改人id", required = true)
    private Long updateBy;

    @ApiModelProperty(value = "修改时间", required = true)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime updateAt;

    @ApiModelProperty(value = "告警类型(对应字典表id)", required = true)
    private Long alarmType;

    @ApiModelProperty(value = "告警类型 1-水质告警和水质预测告警  2- 设备告警和网络告警", required = true)
    private Long type;
}